package com.lyc.service;

import com.lyc.entity.Order;
import com.lyc.entity.biz.OrderBiz;
import com.lyc.entity.qo.OrderQo;
import com.lyc.entity.vo.OrderVo;
import com.lyc.entity.vo.OrderUsernameVo;
import com.lyc.entity.vo.PageBean;

import java.util.List;

public interface IOrderService {
    Order makeOrder(Integer uid, OrderBiz orderBiz);

    PageBean<OrderVo> getMyOrdersByStatus(Integer uid, Integer status, Integer currentPage);

    void updateOrderStatusByOid(String oid,Integer status);

    Order getOrderByOid(String oid);

    OrderVo getOrderDetailByOid(String oid);

    void deleteOrderByOid(String oid);

    PageBean<OrderUsernameVo> getOrderByConditions(OrderQo orderQo, Integer currentPage, int pageSize);

    void updateOrder(Order order);

    void deleteBatchByOids(List<String> oids);
}
